/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const workflowRouter = {
  path: '/workflow',
  component: Layout,
  redirect: 'noRedirect',
  name: '工作流',
  meta: {
    title: '工作流',
    roles: ['develop'],
    icon: 'international'
  },
  children: [
    {
      path: 'process',
      component: () => import('@/views/workflow/process'),
      name: '流程',
      meta: { title: '流程' }
    },
    {
      path: 'process-detail',
      component: () => import('@/views/workflow/process-detail')
    },
    {
      path: 'mission',
      component: () => import('@/views/workflow/mission'),
      name: '任务',
      meta: { title: '任务' }
    }
  ]
}

export default workflowRouter
